/**
 * 
 */
package it.ionize;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.beans.PropertyVetoException;
import java.util.ArrayList;
import java.util.List;

import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JList;
import javax.swing.ListSelectionModel;
import javax.swing.UIManager;

import net.miginfocom.swing.MigLayout;

/**
 * @author Jacek Furmankiewicz
 *
 */
public class MainFrame extends JFrame {

	private JDesktopPane samplesFrame = new JDesktopPane();
	private JList list = new JList();
	
	/**
	 * Constructor
	 */
	public MainFrame(String title) {
		super(title);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        pack();
        setExtendedState(JFrame.MAXIMIZED_BOTH);
		
		MigLayout layout = new MigLayout();
		setLayout(layout);
		
		//list of samples
		
		List<String> allFields= new ArrayList<String>();
		allFields.add("a");
		allFields.add("b");
		allFields.add("c");
		

		List<String> blobsFields= new ArrayList<String>();
		blobsFields.add("b");
		
		add(new BlobExportPanel(blobsFields,allFields,null,null));
		
	}
	


    public static void main(String[] args) {
        //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
            	try {
        			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            		//UIManager.setLookAndFeel(new SubstanceOfficeSilver2007LookAndFeel());
        		} catch (Exception e) {
        			// TODO Auto-generated catch block			
        			e.printStackTrace();
        		}
            	
            	MainFrame frame = new MainFrame("MigLayout Samples");
                frame.setVisible(true);
            }
        });
    }
}
